package com.kunlun.system.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2019-04-21
 */
@TableName("sys_user")
public class SysUser extends Model<SysUser> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;
    @TableField("CODE")
    private String code;
    @TableField("NAME")
    private String name;
    @TableField("PASSWORD")
    private String password;
    @TableField("CREATE_TIME")
    private Date createTime;
    @TableField("DEPT_ID")
    private Integer deptId;
    @TableField("UNIT_ID")
    private Integer unitId;
    /**
     * 用户状态 1:启用 0:停用
     */
    @TableField("STATUS")
    private String status;
    @TableField("CERTIFICATE_NO")
    private String certificateNo;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getUnitId() {
        return unitId;
    }

    public void setUnitId(Integer unitId) {
        this.unitId = unitId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCertificateNo() {
        return certificateNo;
    }

    public void setCertificateNo(String certificateNo) {
        this.certificateNo = certificateNo;
    }

    public static final String ID = "ID";

    public static final String CODE = "CODE";

    public static final String NAME = "NAME";

    public static final String PASSWORD = "PASSWORD";

    public static final String CREATE_TIME = "CREATE_TIME";

    public static final String DEPT_ID = "DEPT_ID";

    public static final String UNIT_ID = "UNIT_ID";

    public static final String STATUS = "STATUS";

    public static final String CERTIFICATE_NO = "CERTIFICATE_NO";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysUser{" +
        "id=" + id +
        ", code=" + code +
        ", name=" + name +
        ", password=" + password +
        ", createTime=" + createTime +
        ", deptId=" + deptId +
        ", unitId=" + unitId +
        ", status=" + status +
        ", certificateNo=" + certificateNo +
        "}";
    }
}
